<?php
namespace app\index\model;
use think\Model;
class project extends Model{
    //model的构造方法
    protected function initialize(){
        parent::initialize();
    }

    public function getRecentProject(){
        $res = $this->order('ProjectID desc')->limit(5)->select();
        return $res;
    }

} 